<html>

	<head>
		<title>店铺页面管理</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

		<link href="../../css/skin/default/style.css" rel="stylesheet" type="text/css" />
		<link href="../../css/dialog.css" rel="stylesheet">
		<link href="../../js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />

		<script src="../../js/lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>

		<script src="../../js/lib/ligerUI/js/plugins/ligerPopupEdit.js"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>

		<script src="../../js/lib/jquery.form.js" type="text/javascript"></script>
		<script src="../../js/lib/json2.js" type="text/javascript"></script>
		<script src="../../js/dialog.js"></script>
		<script src="../../js/JS/layout.js"></script>
		<script src="../../js/constants.js" type="text/javascript"></script>
		<script src="../../js/api.js" type="text/javascript"></script>

		<script type="text/javascript">
			var manager;
			$(document).hover(parent.hindMenu);

			var pageUrl = BaseUrl + "Page?token=" + $api.getStorage("token");

			$(function() {
				$("form").ligerForm();

				initView();

			});

			function initView() {
				var url = pageUrl + "&key=";
				manager = $("#maingrid").ligerGrid({
					columns: [{
							display: '序号',
							name: 'ID',
							align: 'left',
							width: 80
						},
						{
							display: '标题',
							name: 'PageName',
							align: 'left',
							minWidth: 220
						},
						{
							display: '创建日期',
							isSort: true,
							name: 'Createdate',
							type: 'date',
							width: 200,
							align: 'center'
						},
						{
							display: '是否主页',
							name: 'IsMain',
							width: 100,
							render: function(rowdata, rowindex, value) {
								if(rowdata.IsMain) return "是";
								return "否";
							}
						} 
					],
					dataAction: 'local',
					url: url,
					method: 'get',
					width: '99.5%',
					height: '85%',
					isScroll: true,
					rowHeight: 40,
					pageSize: 50,
					usePager: true
				});

			}

			function f_save() {
				var row = manager.getSelectedRow();
				if(row) {
					return row;
				}
				return null;
			}

			function doSearch(high) {
				var key = $("#txtKeywords").val();
				var url = pageUrl + "&key=" + key;
				manager.GetDataByURL(url);
			}
		</script>

	</head>

	<body class="mainbody">
		<form id="form1" onsubmit="return false">
			<div style="display:none" class="div-alarm"></div>
			<div class="toolbar-wrap">
				<div  class="toolbar">

					<div class="r-list">
						<input type="text" ID="txtKeywords" placeholder='页面名称' class="keyword" />
						<a class='btn-search' onclick='doSearch(false);' style="margin-right:10px;">搜索</a>

					</div>
				</div>
			</div>

			<div id="maingrid" style="margin: 0px;background:#fff;"></div>
			<div class="div-content" style="margin-top: 10px;width:99.5%">
				<div class="divhead">信息管理小贴士</div>
				<hr class="divline" />
				<div style="padding:1px 5px; line-height:22px;"><span style="font-weight:bold">修改：</span>完善页面内容，提高页面正确度；信息质量越高，越能吸引用户。</div>
				<div style="padding:1px 5px; line-height:22px;"><span style="font-weight:bold">删除：</span>页面删除后将不能重现，请谨慎操作；
				</div>
				<div style="padding:1px 5px; line-height:22px;"><span style="color:#FD0036">如需要客户提供的资料，则补充完成后，请用测试版查看页面质量，然后再上线</span>
				</div>
		</form>

	</body>

</html>